import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useStore = defineStore("isLogin", () => {
  const isLogin = ref(false)
  function logIn() {
    isLogin.value = true
  }
  function logOut() {
    isLogin.value = false
  }
  return {
    isLogin,
    logIn,
    logOut,
  }
})